import request from '@/utils/request'

// 查询折扣信息列表
export function selectChargeDiscount(query) {
  return request({
    url: '/service/chargeDiscount/select',
    method: 'get',
    params: query
  })
}

// 查询折扣信息列表
export function listChargeDiscount(query) {
  return request({
    url: '/service/chargeDiscount/list',
    method: 'get',
    params: query
  })
}

// 查询折扣信息详细
export function getChargeDiscount(id) {
  return request({
    url: '/service/chargeDiscount/' + id,
    method: 'get'
  })
}

// 新增折扣信息
export function addChargeDiscount(data) {
  return request({
    url: '/service/chargeDiscount',
    method: 'post',
    data: data
  })
}

// 修改折扣信息
export function updateChargeDiscount(data) {
  return request({
    url: '/service/chargeDiscount',
    method: 'put',
    data: data
  })
}

// 删除折扣信息
export function delChargeDiscount(id) {
  return request({
    url: '/service/chargeDiscount/' + id,
    method: 'delete'
  })
}
